You are here: Statements and Functions > Reset Stats
Syntax samples
RESET STATS
IF Total = 20 THEN RESET STATS
Resets the simulation statistics. Useful in connection with the REPORT statement to manually control statistics for reporting purposes in case specific or event logic.
Any logic.
Example
Suppose you want to generate a new output report for each 20-hour period of the simulation. Enter the following logic in an independent subroutine which is activated at the beginning of the simulation:
WHILE Clock(hr) < 10000 DO
BEGIN
WAIT 20 hr
REPORT
RESET STATS
END
REPORT and WARMUP.